/*
 * @Author: 瞿旺兴 18774621495@163.com
 * @Date: 2022-05-13 18:08:44
 * @LastEditors: 瞿旺兴 18774621495@163.com
 * @LastEditTime: 2022-05-18 11:43:11
 * @FilePath: \nien-vue3-admin\src\api\BusinessConfig\serviceProvider.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
// 新增服务商
export function add(data) {
  return request({
    url: 'system/provider/add',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
    },
  })
}
// 修改服务商
export function edit(data) {
  return request({
    url: '/system/provider/edit',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
    },
  })
}
// 获取列表
export function getList(params) {
  return request({
    url: '/system/provider/list',
    params,
   
  })
}
// 根据id查询服务商详情
export function getListInfo(id) {
  return request({
    url: `/system/provider/getInfo/${ id }`,
    method: 'get',
    
  })
}

// 服务商管理删除
export function delData(ids) {
  return request({
    url: `/system/provider/remove/${ ids }`,
    method: 'delete',
  })
}
